package com.example.demod.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BookController {
    @GetMapping("/book")
    public String book(){
        return "hello, book";
    }
    @GetMapping("/book/test")
    public String btest(){
        return "test";
    }
    @GetMapping("/book/user")
    public String buser(){
        return "hello, users!";
    }
    @PostMapping("/book/post")
    public String bpost(String book){
        return "hello"+book+"!";
    }
    @PostMapping("/book/list")
    public  String blist(){
        return "this is my book";
    }
}
